package models;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import play.db.jpa.Model;

/**
 * 实体类 - 人才信息类
 * */
@Entity
@Table(name="staff")
public class Staff extends Model{
	
	
	@ManyToOne()
	@JoinColumn(name="emp_id")
	public Employment employment;  //招聘信息
	@Column(name="sta_name",length=50)
	public String staName;     //姓名
	@Column(name="sta_age")
	public int staAge;         //年龄
	@Column(name="sta_mob",length=50)
	public String staMob;      //手机
	@Column(name="sta_addr",length=150)
	public String staAddr;     //住址
	@Column(name="sta_dip",length=50)
	public String staDip;      //文凭
	@Column(name="sta_enr")
	@Temporal(TemporalType.DATE)
	public Date staEnr;        //报名日期
	@Column(name="sta_res",length=50)
	public String staRes;      //简历
	@Column(name="sta_sex")
	public String staSex;      //性别

	public String toString(){
		return staName;
	}
}
